package com.kefu.netty.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @Autowired
    StringRedisTemplate stringRedisTemplate;

    @GetMapping("userList")
    public String userList(){
        stringRedisTemplate.opsForValue().get("1");
    }

}
